<template>
	<view>
		<div class="box ">
			<basic :type="type" :id="work_id"></basic>
		</div>
	</view>
</template>

<script>
	import basic from '../commit/Basic.vue'
	export default {
		components: {
			basic
		},
		data() {
			return {
				type: '',
				work_id: '',
				obj:{
					'SAVE_OPERATE_AUDIT':1,
					'UPDATE_OPERATE_AUDIT':2,
					'JUMP_OPERATE_AUDIT':3
				}
			}
		},
		created() {
			console.log( this.$mp.query ," this.$mp.query ");
			if(this.$mp.query.token){
				uni.setStorageSync('token', this.$mp.query.token)
			}
			this.type = this.obj[this.$mp.query.form_type]
			this.work_id = this.$mp.query.work_id
			console.log(this.type);
		},
		methods: {

		}
	}
</script>
<style>
	page {
		background-color: #F6F6F6;
	}
</style>
<style lang="scss" scoped>
	.box {
		width: 95%;
		margin: 0 auto;
		margin-top: 20rpx;
		border-radius: 8rpx;
		background-color: #FFF;
	}
</style>